﻿@model WebUI.Models.BaseViewModel
@if (!Model.Identity.IsLoggedIn)
{
    <div class="fr header-nav header-nav-right">
        <a href="/signin">Sign In</a>
    </div>
    <div class="fr header-nav header-nav-right">|</div>
    <div class="fr header-nav header-nav-right">
        <a href="/signup">Create a Portfolio</a>
    </div>
    <div class="fr header-nav header-nav-right">|</div>
    <div class="fr  header-nav header-nav-right">
        <a href="/job/about-posting">Post a Job</a>
    </div>
}
else
{
    if (Model.Identity.IsIndLoggedIn)
    {
        string profileUrl = "/user/" + Model.Identity.UserName;
        
        <div class="fr header-nav header-nav-right"><a href="/signout">Sign Out</a></div>
        <div class="fr header-nav header-nav-right">|</div>
        <div class="fr header-nav header-nav-right"><a href="@profileUrl">Welcome, @Model.Identity.UserName</a></div>
        
    }
    else
    { 
        <div class="fr header-nav header-nav-right"><a href="/signout">Sign Out</a></div>
        <div class="fr header-nav header-nav-right">|</div>
        <div class="fr header-nav header-nav-right"><a href="/company/joblist">Welcome, @Model.Identity.UserName</a></div>
    }
}
